Apple, the Apple logo, and Macintosh are registered trademarks of Apple Computer, Inc.
Mac and OpenDoc are trademarks of Apple Computer, Inc.
Introduction
ISO strings are essentially null-terminated 7-bit ASCII strings. The ISO String Utilities in OpenDoc are simply cover functions for the standard C string functions.
ISO String Utilities
The following is the definition of each ISO String utility functions in terms of the standard C string function:
#define ODISOStrCopy(D,S) strcpy(D,S)
#define ODISOStrNCopy(D,S,L) strncpy(D,S,L)
#define ODISOStrConcat(D,S) strcat(D,S)
#define ODISOStrNConcat(D,S,L) strncat(D,S,L)
#define ODISOStrCompare(A,B) strcmp(A,B)
#define ODISOStrNCompare(A,B,L) strncmp(A,B,L)
#define ODISOStrEqual(A,B) (strcmp(A,B)==0)
#define ODISOStrLength(S) strlen(S)
ODISOStr ODISOStrFromCStr(const char* cstring);
Returns an ODISOStr which is a copy of the input parameter. The input parameter is not deallocated by this function. The caller needs to do it explicitly.